﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealTimeCharts.LineChart
{
    public class ValuePoint
    {
        public DateTime tm; // 时间
        public double valX; // X值
        public double valY; // Y值

        public ValuePoint(uint seq,double val)
        {
            this.valX = seq;
            this.valY = val;
        }

        public ValuePoint(DateTime tm, uint seq,double valY) : this(seq, valY)
        {
            this.tm = tm;
        }

        public ValuePoint(double valX,double valY)
        {
            this.valX=valX;
            this.valY=valY;
        }

        public ValuePoint(DateTime tm, double valX, double valY) : this(valX,valY) 
        {
            this.tm = tm;
        }

        public void Copy(ValuePoint pt)
        {
            tm = pt.tm;
            valX = pt.valX;
            valY = pt.valY;
        }

        public ValuePoint()
        {

        }
    }
}
